package com.example.yichuangyun.model.company;

import android.util.Log;

import com.amap.api.maps.model.LatLng;
import com.example.yichuangyun.config.Constant;

import java.io.Serializable;
import java.util.List;

public class CompanyDataModel {
    private List<CompanyModel> data;
    private int totalSize;

    public List<CompanyModel> getData() {
        return data;
    }

    public void setData(List<CompanyModel> data) {
        this.data = data;
    }

    public int getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(int totalSize) {
        this.totalSize = totalSize;
    }

    public static class CompanyModel implements Serializable {

        private boolean isSelect;
        private String id;
        private String eid;
        /**
         * 公司名称
         */
        private String name;
        private String companyName;
        /**
         * 统一信用代码
         */
        private String creditNo;
        /**
         * 法人
         */
        private String operName;
        /**
         * 注册资金
         */
        private String registCapi;
        /**
         * 成立时间
         */
        private String startDate;
        /**
         * 公司logo
         */
        private String logoUrl;
        /**
         * 我司客户
         */
        private boolean wskh;
        /**
         * x个联系方式
         */
        private int telCount;
        /**
         * 1存续、2注销、3吊销、4撤销、5迁出、6设立中、7清算中、8停业、9其它
         */
        private String newStatusCode;
        /**
         * 1-A级纳税人
         */
        private int payTaxeState;
        /**
         * 所属行业
         */
        private List<String> industryCodeList;
        /**
         * 企业地址
         */
        private String address;
        private String reportAddress;
        /**
         * 最新年报地址
         */
        private String latestAddress;
        /**
         * 企业网址
         */
        private List<String> webUrls;
        /**
         * 1已收藏 0未收藏
         */
        private int collectState;

        private double gdLongitude;

        private double gdLatitude;

        private double longitude;

        private double latitude;

        private CallCountModel callRecordResp;

        public LatLng getPosition() {
            if (Constant.isSearch) {
                return new LatLng(this.latitude, this.longitude, false);
            } else {
                return new LatLng(this.gdLatitude, this.gdLongitude, false);
            }
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCompanyName() {
            return companyName;
        }

        public void setCompanyName(String companyName) {
            this.companyName = companyName;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getEid() {
            return eid;
        }

        public void setEid(String eid) {
            this.eid = eid;
        }

        public String getCreditNo() {
            return creditNo;
        }

        public void setCreditNo(String creditNo) {
            this.creditNo = creditNo;
        }

        public String getOperName() {
            return operName;
        }

        public void setOperName(String operName) {
            this.operName = operName;
        }

        public String getRegistCapi() {
            return registCapi;
        }

        public void setRegistCapi(String registCapi) {
            this.registCapi = registCapi;
        }

        public String getStartDate() {
            return startDate;
        }

        public void setStartDate(String startDate) {
            this.startDate = startDate;
        }

        public String getLogoUrl() {
            return logoUrl;
        }

        public void setLogoUrl(String logoUrl) {
            this.logoUrl = logoUrl;
        }

        public boolean isWskh() {
            return wskh;
        }

        public void setWskh(boolean wskh) {
            this.wskh = wskh;
        }

        public int getTelCount() {
            return telCount;
        }

        public void setTelCount(int telCount) {
            this.telCount = telCount;
        }

        public String getNewStatusCode() {
            return newStatusCode;
        }

        public void setNewStatusCode(String newStatusCode) {
            this.newStatusCode = newStatusCode;
        }

        public int getPayTaxeState() {
            return payTaxeState;
        }

        public void setPayTaxeState(int payTaxeState) {
            this.payTaxeState = payTaxeState;
        }

        public List<String> getIndustryCodeList() {
            return industryCodeList;
        }

        public void setIndustryCodeList(List<String> industryCodeList) {
            this.industryCodeList = industryCodeList;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public List<String> getWebUrls() {
            return webUrls;
        }

        public void setWebUrls(List<String> webUrls) {
            this.webUrls = webUrls;
        }

        public int getCollectState() {
            return collectState;
        }

        public void setCollectState(int collectState) {
            this.collectState = collectState;
        }

        public double getGdLongitude() {
            return gdLongitude;
        }

        public void setGdLongitude(double gdLongitude) {
            this.gdLongitude = gdLongitude;
        }

        public double getGdLatitude() {
            return gdLatitude;
        }

        public void setGdLatitude(double gdLatitude) {
            this.gdLatitude = gdLatitude;
        }

        public String getReportAddress() {
            return reportAddress;
        }

        public void setReportAddress(String reportAddress) {
            this.reportAddress = reportAddress;
        }

        public String getLatestAddress() {
            return latestAddress;
        }

        public void setLatestAddress(String latestAddress) {
            this.latestAddress = latestAddress;
        }

        public double getLongitude() {
            return longitude;
        }

        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        public double getLatitude() {
            return latitude;
        }

        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }

        public CallCountModel getCallRecordResp() {
            return callRecordResp;
        }

        public void setCallRecordResp(CallCountModel callRecordResp) {
            this.callRecordResp = callRecordResp;
        }

        public boolean isSelect() {
            return isSelect;
        }

        public void setSelect(boolean select) {
            isSelect = select;
        }

        public static class CallCountModel implements Serializable{
            /**
             * 几天内
             */
            private int day;
            /**
             * 联系数量
             */
            private int number;

            public int getDay() {
                return day;
            }

            public void setDay(int day) {
                this.day = day;
            }

            public int getNumber() {
                return number;
            }

            public void setNumber(int number) {
                this.number = number;
            }
        }
    }
}
